package com.example.datacollection.mapper;

import com.example.datacollection.bean.DataRateInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DataRateMapper {
    /**
     * 批量插入统计数据
     * @param list
     * @return
     */
    int saveRate (@Param("list") List<DataRateInfo> list);

    int deleteRate();
}
